/**
 * Created by MDURAND on 16/10/2014.
 */
var helloseriesApp = angular.module('myApp', ['ngResource', 'ngSanitize','pascalprecht.translate' ,'ngDialog',  'angular-md5', 'constants'])
    .config(["$translateProvider",
        function($translateProvider) {
            // Configuration angular-translate
            $translateProvider.useStaticFilesLoader({
                prefix: 'resources/messages_',
                suffix: '.json'
            });
            $translateProvider.preferredLanguage('fr');
        }
]);

helloseriesApp
    .config(['$httpProvider',
        function($httpProvider){
            // Configuration HTTP
            $httpProvider.defaults.useXDomain = true;
            delete $httpProvider.defaults.headers.common['X-Requested-With'];

        }
    ]);